﻿Imports ajayumi.develop.win32.GameEditor.Base

Public Class ucController


    Private m_Game As IGame = Nothing
    Public WriteOnly Property Game() As IGame
        Set(ByVal value As IGame)
            m_Game = value
        End Set
    End Property


    Private Sub ucController_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.btnAmmo1.Text = String.Format("修改突击步枪弹药为{0}", My.Settings.Ammo1)
    End Sub

    Private Sub btnNectar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAmmo1.Click
        Try
            DirectCast(Me.m_Game, AlienBreed2Assault).ChangeAmmo1(My.Settings.Ammo1)
            'DirectCast(Me.m_Game, Bugbits).ChangeNectar(My.Settings.Nectar)
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub


End Class
